<?php
/**
 * Created By PhpStorm
 * Author: patrick wu
 * Date: 2020/9/19
 * Time: 16:48
 */
namespace App\Http\Model\Mysql;

use Illuminate\Database\Eloquent\Model;

class BrandModel extends Model
{
    const IS_DELETE     =   1;
    const NOT_DELETE    =   0;

    protected $table    =   'mini_brand';

    protected $guarded  =   [];

    protected $dateFormat   =   'U';

    /**
     * 反向定义链接店铺表
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function shop()
    {
        return $this->belongsTo(ShopModel::class, 'shop_id', 'id');
    }
}
